package com.woniuxy.table.client;

import com.woniuxy.table.client.param.AddDiningAreaParam;
import com.woniuxy.table.client.param.ModifyDiningAreaParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;
import result.Result;

@FeignClient(contextId = "diningAreaMannageClient",name="table")
public interface DiningAreaMannageClient {
    @PostMapping("/addDiningArea")
    public Result addDiningArea(@RequestBody AddDiningAreaParam addDiningAreaParam);

    @PutMapping("/modifyDiningArea")
    public Result modifyDiningArea(@RequestBody ModifyDiningAreaParam modifyDiningAreaParam);

    @DeleteMapping ("/deleteDiningArea")
    public Result deleteDiningArea(@RequestParam("storeId")Integer storeId,@RequestParam("diningAreaId")Integer diningAreaId);
}
